<%@ page import="pojo.SysUser" %>
<%@ page import="java.util.List" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/7/26
  Time: 16:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>Insert title here</title>
</head>
<body>
    <h1>查询用户列表</h1>
    <form action="${pageContext.request.contextPath}/user/list" method="post">
        用户名称:<input type="text" name="realName" value="${string}"/>
        <input type="submit" name="查询"/>
    </form>
    <%
        List<SysUser> queryUserList = (List<SysUser>) request.getAttribute("queryUserList");
        for (SysUser user : queryUserList) {
    %>
    <div>
        id = <%=user.getId()%>;
        用户编码 = <%=user.getAccount()%>;
        用户名称 = <%=user.getRealName()%>;
        用户密码 = <%=user.getPassword()%>;
        用户地址 = <%=user.getAddress()%>;
    </div>
    <%
        }
    %>

</body>
</html>
